<template>
	<view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad(options) {
				let roleType = '';
				if(uni.getStorageSync('userInfo')){
					roleType = JSON.parse(uni.getStorageSync('userInfo')).identity.member_level;
				}
				if( roleType == 'user' || !roleType){
					uni.showModal({
					title: '提示',
					content: '没有权限访问',
					showCancel: false,
					success: function(res) {
							if (res.confirm) {
								uni.navigateTo({
									url:'/pages/index/index'
								});
							} else {
								console.log('点击了取消')
							}
						}
					})
				}else{
					uni.redirectTo({
						url:'/pages/diy/diy?page_id=168'
					})
				}
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
